#!/usr/local/bin/ruby
#-*- coding: UTF-8 -*-
$LOAD_PATH << '.'

require "ordinal"
require "dict"
require "trans"

puts "Ordinal"
ord = Ordinal.new(5)
t1 = Time.new
ord.ordinalOrder
t2 = Time.new
puts "所用时间：#{t2-t1}"

puts "Dict"
dict = Dict.new(5)
t1 = Time.new
dict.dictOrder
t2 = Time.new
puts "所用时间：#{t2-t1}"

puts "Trans"
trans = Trans.new(5)
t1 = Time.new
trans.transOrder
t2 = Time.new
puts "所用时间：#{t2-t1}"
